package com.ocom.xcxapi.client;

import com.ocom.common.constant.AccessServiceUrl;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


@FeignClient(value = "access")
public interface AccessClientService {


    /**
     * 根据用户查询设备列表（searchMachListByUser）
     * */
    @GetMapping(AccessServiceUrl.URL_SearchMachListByUser)
    public Result SearchMachListByUser(@RequestParam("comId") Long comId,@RequestParam("userId") Long userId);

    /**
     * 查询门禁记录（getAccessRecord）
     * */
    @PostMapping(AccessServiceUrl.URL_GetAccessRecord)
    public Result GetAccessRecord(@RequestBody Map<String,Object> map);

    @PostMapping(AccessServiceUrl.URL_WxGetAccessByUser)
    public Result getAccessByUser(@RequestParam("companyId")Long companyId,@RequestParam("pId")Long pId);


//    @PostMapping(AccessServiceUrl.URL_WxGetAreaInfo)
//    Result getAreaList(@RequestParam("companyId")Long companyId,@RequestParam("pId")Long pId);
//
//
//    @PostMapping(AccessServiceUrl.URL_UpdateAreaName)
//    Result UpdateAreaName(@RequestBody AreaDto areaDto);
//
//
//
//    @PostMapping(AccessServiceUrl.URL_getUserAccessListByArea)
//    Result getUserAccessListByArea(@RequestParam("companyId")Long companyId,@RequestParam("areaNo")Long areaNo);
//
//
//    @PostMapping(AccessServiceUrl.URL_getGroupListByArea)
//    Result getGroupListByArea(@RequestParam("companyId")Long companyId,@RequestParam("areaNo")Long areaNo);
//
//
//    @PostMapping(AccessServiceUrl.URL_WxGetAreaInfoById)
//    Result getAreaInfoById(@RequestParam("companyId")Long companyId,@RequestParam("areaNo")Long areaNo);
//
//
//
//    @PostMapping(AccessServiceUrl.URL_WxChangeAccess)
//    Result setAccess(@RequestBody UserAccessPageSetAccessRequest request);
//
//
//    @PostMapping(AccessServiceUrl.URL_WxGetAccessByUser)
//    Result getAccessByUser(@RequestParam("companyId")Long companyId,@RequestParam("pId")Long pId);
//
//
//    @PostMapping(AccessServiceUrl.URL_getMachineInfoByMachNo)
//    Result getMachineInfoById(@RequestParam("companyId")Long companyId,@RequestParam("machNo")String machNo);
//
//
//    @PostMapping(AccessServiceUrl.URL_updateMachNameByMachNo)
//    Result updateMachNameByMachNo(@RequestParam("companyId")Long  companyId,@RequestParam("machNo")String machNo,@RequestParam("machName") String machName);
//
//    @PostMapping(AccessServiceUrl.URL_WXchangeMachPlace)
//    Result  changeMachPlace(@RequestParam("companyId")Long companyId,@RequestParam("machNo")String machNo,@RequestParam("areaNo")Long areaNo);
//
//    @PostMapping(AccessServiceUrl.URL_WXremoveMach)
//    Result   removeMach(@RequestParam("companyId")Long companyId,@RequestParam("machNo")String machNo);
//
//    @PostMapping(AccessServiceUrl.URL_RemoveArea)
//    Result   RemoveArea(@RequestBody AreaDto areaDto);
//
//
//    @PostMapping(AccessServiceUrl.URL_WxNewArea)
//    public Result newArea(@RequestParam("companyId")Long companyId,@RequestParam("regionId")Long regionId,@RequestParam("areaName")String areaName,@RequestParam("pId")Long pId);
//
//    @PostMapping(AccessServiceUrl.URL_BindMach)
//    Result BindMach(@RequestBody BindMachVo bindMachVo);
//
//
//    @PostMapping(AccessServiceUrl.URL_SearchMachList)
//    Result SearchMachList(@RequestBody SearchMachListVo searchMachListVo);
//
//
//    @PostMapping(AccessServiceUrl.URL_getMachineListOnLoad)
//    Result getMachineListOnLoad(@RequestParam("companyId")Long companyId);
//
//
//    @PostMapping(AccessServiceUrl.URL_newQrCode)
//    Result newQrCode(@RequestBody QrPageOnLoadRequest request);
//
//
//    @PostMapping(AccessServiceUrl.URL_pollingQrCode)
//    Result pollingQrCode(@RequestParam("qrCode")String qrCode ,@RequestParam("pollingTimes")Integer pollingTimes);

}


